package mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface clearMapper {

    // 删除班级表 classes 全部数据
    @Delete("TRUNCATE table classes")
    void clearClasses();

    // 删除签到表 logo
    @Delete("TRUNCATE table logo")
    void clearLogo();

    // 删除ppt表
    @Delete("TRUNCATE table ppt")
    void clearPPT();

    // 删除学生表
    @Delete("TRUNCATE table student")
    void clearStudent();

    // 删除作业表
    @Delete("TRUNCATE table work")
    void clearWork();

    // 删除学生选择题答案表
    @Delete("TRUNCATE table work_answer_choose")
    void clearWorkAnswerChoose();

    // 删除学生编程题记录表
    @Delete("TRUNCATE table work_answer_encode")
    void clearWorkAnswerEncode();

    // 删除学生填空题答案表
    @Delete("TRUNCATE table work_answer_fill")
    void clearWorkAnswerFill();

    // 删除学生判断题答案
    @Delete("TRUNCATE table work_answer_judge")
    void clearWorkAnswerJudge();

    // 删除选择题表
    @Delete("TRUNCATE table work_choose")
    void clearWorkChoose();

    // 删除作业班级表
    @Delete("TRUNCATE table work_class")
    void clearWorkClass();

    // 删除编程题
    @Delete("TRUNCATE table work_encode")
    void clearWorkEncode();

    // 删除作业文件上传题
    @Delete("TRUNCATE table work_file_upload")
    void clearWorkFileUpload();

    // 删除填空题
    @Delete("TRUNCATE table work_fill")
    void clearWorkFill();

    // 删除填空题选项分值
    @Delete("TRUNCATE table work_fill_option")
    void clearWorkFillOption();

    // 删除判断题
    @Delete("TRUNCATE table work_judge")
    void clearWorkJudge();

    // 删除分值表
    @Delete("TRUNCATE table work_score")
    void clearWorkScore();

    // 删除学生提交作业表
    @Delete("TRUNCATE table work_student_state")
    void clearWorkStudentState();

    // 删除测试二文件地址表
    @Delete("TRUNCATE table work_test_two_data")
    void clearWorkTestTwoData();
}
